/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mvp.levelup.lists;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author WORKSPOT2
 */
public class Employee implements Comparable<Employee>
{

    private int id;
    private String name;
    private int salary;
    private List<String> skills;

    public Employee(int id, String name, int salary)
    {
        this.id = id;
        this.name = name;
        this.salary = salary;
    }

//    public Employee(int id, String name)
//    {
//        this.id = id;
//        this.name = name;
//        skills = new ArrayList<String>();
//    }

    public int getId()
    {
        return id;
    }

    public String getName()
    {
        return name;
    }

    public int getSalary()
    {
        return salary;
    }

    public List<String> getSkills()
    {
        return skills;
    }

    public void setSkills(List<String> skills)
    {
        this.skills = skills;
    }

    @Override
    public int compareTo(Employee o)
    {
        int mySalary = this.salary;
        int otherSalary = o.getSalary();
        return -(mySalary - otherSalary);
    }
}
